Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/proxy callbacks #191

Closed

Conversation

Keyrxng
Copy link
Member

@Keyrxng Keyrxng commented Nov 6, 2024

Resolves ubiquity-os/plugin-sdk#33

  • adds CallbackBuilder class to help build the proxyCallbacks object
  • createPlugin takes CallbackBuilder instead of handler()
  • wrote a post-build script to clean and build a package.json for each dir we end up having
  • /sdk and /types right now but easy to add others

QA: ubq-testing/qa-plugin#1

Building callbacks:
image

Callback signature:
image

Clean package.json per dist dir:
image

@Keyrxng
Copy link
Member Author

Keyrxng commented Nov 6, 2024

@gentlementlegen @whilefoo Fancy a peak?

Still to accommodate actions, fix failing tests and will do that tmrw but it's a matter of replicating the code pretty much (will try to avoid actually copy/pasting).

Anything sticking out so far that's a deal breaker?


Also am I correct in thinking the package.json in this repo is configured for the kernel, not specifically the SDK of the kernel?

src/sdk/proxy-callbacks.ts Outdated Show resolved Hide resolved
@Keyrxng
Copy link
Member Author

Keyrxng commented Nov 8, 2024

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed since we moved the SDK out?

Copy link
Member

@gentlementlegen gentlementlegen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I think it's fine but maybe you should remove all the SDK related code.

@Keyrxng
Copy link
Member Author

Keyrxng commented Nov 10, 2024

Makes sense to PR the SDK so I'll need to redo this PR

@Keyrxng Keyrxng closed this Nov 10, 2024
@Keyrxng
Copy link
Member Author

Keyrxng commented Nov 10, 2024

ubiquity-os-marketplace/command-ask#26 (comment)

If this PR is a priority can the task be priced and I'll be happy to re-do things (once the location of where the SDK will live is decided)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CallbackBuilder
3 participants